package com.simple.microservices.web.active;

import com.simple.microservices.api.active.BlindBoxService;
import com.simple.microservices.commons.utils.Response;
import com.simple.microservices.dao.dataobject.Banner;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 盲盒交友
 */
@Slf4j
@RestController
@RequestMapping("/active/blind/box")
public class BlindBoxController {
    @Resource
    private BlindBoxService blindBoxService;


    /**
     * Banner 列表
     * @return
     */
    @RequestMapping("banner/list")
    public Response<Banner> bannerList(){
      log.info("获取Banner列表");
        List<Banner> bannerList = blindBoxService.getAll();
        return Response.success(bannerList);
    }


}
